package xxl.robotlegs.extensions.contextview.impl 
{
	import flash.display.DisplayObjectContainer;
	import xxl.signals.impl.natives.sets.DisplayObjectSignalSet;
	import xxl.signals.impl.natives.sets.StageSignalSet;
	/**
	 * ...
	 * @author XXL
	 */
	public class ContextView 
	{
		private var _view:DisplayObjectContainer;
		private var _displayObjectSignalSet:DisplayObjectSignalSet;
		private var _stageSignalSet:StageSignalSet;
		
		public function ContextView(view:DisplayObjectContainer)
		{
			_view = view;
		}
		
		public function get view():DisplayObjectContainer 
		{
			return _view;
		}
		
		public function set view(value:DisplayObjectContainer):void 
		{
			_view = value;
		}
		
		public function get displayObjectSignalSet():DisplayObjectSignalSet
		{
			return _displayObjectSignalSet ||= new DisplayObjectSignalSet(_view, true);
		}
		
		public function get stageSignalSet():StageSignalSet
		{
			return _stageSignalSet ||= new StageSignalSet(_view.stage, true);
		}
	}

}